package com.quanyan.place.entity.vo;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by zhaohui on 2016/8/10.
 */
public class RevenueVo implements Serializable {

    private LineRevenueVo lineRevenueVo; //线下VO
    private OnLineRevenueVo onLineRevenueVo; //线上VO

    public LineRevenueVo getLineRevenueVo() {
        return lineRevenueVo;
    }

    public void setLineRevenueVo(LineRevenueVo lineRevenueVo) {
        this.lineRevenueVo = lineRevenueVo;
    }

    public OnLineRevenueVo getOnLineRevenueVo() {
        return onLineRevenueVo;
    }

    public void setOnLineRevenueVo(OnLineRevenueVo onLineRevenueVo) {
        this.onLineRevenueVo = onLineRevenueVo;
    }

    /**
     * 线下内部类
     */
    public class LineRevenueVo{
        private Integer lineOrderCount;//线下订单数
        private BigDecimal lineOrderAmount;//线下订单总额


        //10：会员卡支付金额 20:现金 21:微信扫码 22:支付宝扫码 23:银联 24:与场馆老板结算 25:与外部公司结算 26:与总部内部核算
        private BigDecimal cardPayAmount;//会员卡支付金额
        private BigDecimal cashAmount;//现金金额
        private BigDecimal weixinScanAmount;//微信扫一扫
        private BigDecimal alipayScanAmount;//支付宝扫码
        private BigDecimal unionPayAmount;//银联
        private BigDecimal placeStatAmount;//与场馆老板结算
        private BigDecimal otherCompanyAmount;//与外部公司结算
        private BigDecimal insideStatAmount;//与总部内部核算
        public Integer getLineOrderCount() {
            return lineOrderCount;
        }

        public void setLineOrderCount(Integer lineOrderCount) {
            this.lineOrderCount = lineOrderCount;
        }

        public BigDecimal getLineOrderAmount() {
            return lineOrderAmount;
        }

        public void setLineOrderAmount(BigDecimal lineOrderAmount) {
            this.lineOrderAmount = lineOrderAmount;
        }

        public BigDecimal getCashAmount() {
            return cashAmount;
        }

        public void setCashAmount(BigDecimal cashAmount) {
            this.cashAmount = cashAmount;
        }

        public BigDecimal getCardPayAmount() {
            return cardPayAmount;
        }

        public void setCardPayAmount(BigDecimal cardPayAmount) {
            this.cardPayAmount = cardPayAmount;
        }

        public BigDecimal getWeixinScanAmount() {
            return weixinScanAmount;
        }

        public void setWeixinScanAmount(BigDecimal weixinScanAmount) {
            this.weixinScanAmount = weixinScanAmount;
        }

        public BigDecimal getAlipayScanAmount() {
            return alipayScanAmount;
        }

        public void setAlipayScanAmount(BigDecimal alipayScanAmount) {
            this.alipayScanAmount = alipayScanAmount;
        }

        public BigDecimal getUnionPayAmount() {
            return unionPayAmount;
        }

        public void setUnionPayAmount(BigDecimal unionPayAmount) {
            this.unionPayAmount = unionPayAmount;
        }

        public BigDecimal getPlaceStatAmount() {
            return placeStatAmount;
        }

        public void setPlaceStatAmount(BigDecimal placeStatAmount) {
            this.placeStatAmount = placeStatAmount;
        }

        public BigDecimal getOtherCompanyAmount() {
            return otherCompanyAmount;
        }

        public void setOtherCompanyAmount(BigDecimal otherCompanyAmount) {
            this.otherCompanyAmount = otherCompanyAmount;
        }

        public BigDecimal getInsideStatAmount() {
            return insideStatAmount;
        }

        public void setInsideStatAmount(BigDecimal insideStatAmount) {
            this.insideStatAmount = insideStatAmount;
        }
    }

    /**
     * 线上内部类
     */
    public class OnLineRevenueVo{
        private Integer onLineOrderCount; //线上订单总数
        private BigDecimal onLineOrderAmount;//线上订单总金额

        private BigDecimal weChatAmount;//微信收入
        private BigDecimal alipayAmount;//支付宝收入
        private BigDecimal cardPayAmount;//卡收入
        private BigDecimal couponAmount;//优惠券收入

        public Integer getOnLineOrderCount() {
            return onLineOrderCount;
        }

        public void setOnLineOrderCount(Integer onLineOrderCount) {
            this.onLineOrderCount = onLineOrderCount;
        }

        public BigDecimal getOnLineOrderAmount() {
            return onLineOrderAmount;
        }

        public void setOnLineOrderAmount(BigDecimal onLineOrderAmount) {
            this.onLineOrderAmount = onLineOrderAmount;
        }

        public BigDecimal getWeChatAmount() {
            return weChatAmount;
        }

        public void setWeChatAmount(BigDecimal weChatAmount) {
            this.weChatAmount = weChatAmount;
        }

        public BigDecimal getAlipayAmount() {
            return alipayAmount;
        }

        public void setAlipayAmount(BigDecimal alipayAmount) {
            this.alipayAmount = alipayAmount;
        }



        public BigDecimal getCardPayAmount() {
            return cardPayAmount;
        }

        public void setCardPayAmount(BigDecimal cardPayAmount) {
            this.cardPayAmount = cardPayAmount;
        }

        public BigDecimal getCouponAmount() {
            return couponAmount;
        }

        public void setCouponAmount(BigDecimal couponAmount) {
            this.couponAmount = couponAmount;
        }
    }


   /* public static void main(String[] args) {
        RevenueVo revenueVo = new RevenueVo();
        OnLineRevenueVo onLineRevenueVo = revenueVo.new OnLineRevenueVo();
        onLineRevenueVo.setOnLineOrderCount(200);
        onLineRevenueVo.setOnLineOrderAmount(new BigDecimal(300));
        LineRevenueVo lineRevenueVo = revenueVo.new LineRevenueVo();
        lineRevenueVo.setLineOrderCount(100);
        lineRevenueVo.setLineOrderAmount(new BigDecimal(100));
        revenueVo.setLineRevenueVo(lineRevenueVo);
        revenueVo.setOnLineRevenueVo(onLineRevenueVo);
        System.out.println(revenueVo.toString());
    }*/

}
